package models;

import play.*;
import play.db.jpa.*;
import javax.persistence.*;
import java.util.*;
import play.libs.*;
import controllers.CRUD.Hidden;


@Entity
public class Developer extends Model {
	
	
	//@Id
	//@Hidden
    public String appKey;
	
	public String appName;
	
	public String name;
	
	public String email;
	
	public String password;
	
	
	public Developer(String appName, String name, String email, String password) {
		this.appKey = Codec.UUID();
		this.appName = appName;
        this.email = email;
        this.password = password;
        this.name = name;
    }
	
	@PrePersist
	protected void onCreate(){
		this.appKey = Codec.UUID();
	}
	
	@Override
  public String toString() {
    return this.appName;
  }
  

}

